package com.neuronrobotics.replicator.gui.preview.android;

import android.content.Context;
import android.graphics.Canvas;
import android.widget.ImageButton;

public class ToggleImageButton extends ImageButton{

	public ToggleImageButton(Context context) {
		super(context);		
	}
	
	
	@Override
	public void draw(Canvas c){
		if(this.isSelected()) this.setPressed(true);
		else this.setPressed(false);
		super.draw(c);
	}

}
